package paketGUI;

import java.util.HashMap;

import paketDB.DatabaseHandler;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import eu.mvmnt.golfingapp.R;

public class OptionsAccScreen extends Activity {
	private TextView txtAccCreatedAt;
	private TextView txtAccEmail;

	@SuppressWarnings("rawtypes")
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.options_acc);
		
		DatabaseHandler db = new DatabaseHandler(getApplicationContext());
		HashMap userDetails = new HashMap();
		userDetails = db.getUserDetails();

		txtAccCreatedAt = (TextView) findViewById(R.id.txtAccCreatedAt);
		txtAccEmail = (TextView) findViewById(R.id.txtAccEmail);

		txtAccEmail.setText(userDetails.get("Email").toString());
		txtAccCreatedAt.setText(userDetails.get("CreatedAt").toString());
	}
}
